/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.yxw.live_vod_boot.utils;

import com.yxw.live_vod_facade.enums.NoticeTypeEnum;
import com.yxw.live_vod_backend_facade.vo.NoticeTypeVo;
import com.yxw.live_vod_boot.dto.SendInteractMsgDto;
/**
 * 直播流火山处理逻
 * @author hjx
 * @date 2023-12-8
 */
public class NoticeTypeUtil {
    public static NoticeTypeVo NoticeTypeEnumToVo(SendInteractMsgDto msgDto,String content)
    {
        NoticeTypeEnum oNoticeTypeEnum = msgDto.getType();
        String[] names = oNoticeTypeEnum.getRemark().split(":");
        NoticeTypeVo oNoticeTypeVo = new NoticeTypeVo();
        oNoticeTypeVo.setBelongType(3);
        oNoticeTypeVo.setNoticeTypeCode(oNoticeTypeEnum.getNoticeTypeCode());
        oNoticeTypeVo.setNoticeTypeName(names[0]);
        oNoticeTypeVo.setUseTypeCode(oNoticeTypeEnum.getUseTypeCode());
        oNoticeTypeVo.setUseTypeName(names[1]);
        oNoticeTypeVo.setContent(content);
        return oNoticeTypeVo;
    }
}
